#include "Wiimote4Virtools.h"
#include "WiimInit.h"
#include "WiimRumble.h"
#include "WiimLEDs.h"
#include "WiimMotions.h"
#include "WiimButtons.h"

vector<Wiimote> g_wiimotes;
CKERROR ExitInstance(CKContext* context);
CKPluginInfo g_PluginInfo;

PLUGIN_EXPORT int CKGetPluginInfoCount() 
{
	return 1;
}

PLUGIN_EXPORT CKPluginInfo* CKGetPluginInfo(int Index) 
{
	switch (Index) 
	{
	case 0:
		g_PluginInfo.m_Author = "Jonathan DERROUGH";
		g_PluginInfo.m_Description = "Wiimote support for Virtools Dev";
		g_PluginInfo.m_Extension = "";
		g_PluginInfo.m_Type = CKPLUGIN_BEHAVIOR_DLL;
		g_PluginInfo.m_Version = 0x000001;
		g_PluginInfo.m_InitInstanceFct	= NULL; 
		g_PluginInfo.m_ExitInstanceFct = NULL;
		g_PluginInfo.m_GUID = PLUGIN_GUID;
		g_PluginInfo.m_Summary = "Wiimote4Virtools";

		break;
	}
	return (&g_PluginInfo);
}

void RegisterBehaviorDeclarations(XObjectDeclarationArray *reg) 
{
	RegisterBehavior ( reg, FillBehaviorWiimInit );
	RegisterBehavior ( reg, FillBehaviorWiimRumble );
	RegisterBehavior ( reg, FillBehaviorWiimLEDs );
	RegisterBehavior ( reg, FillBehaviorWiimMotions );
	RegisterBehavior ( reg, FillBehaviorWiimButtons );
}
